package com.tourism.dao;

import com.tourism.entity.AttractionEvaluation;
import com.tourism.entity.AttractionEvaluationQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description 景点评价dao
 * @Author z
 * @Date 2021-04-18 17:00
 */
@Mapper
public interface AttractionEvaluationDao {
    /**
     * 新增景点评价
     *
     * @param attractionEvaluation
     * @return
     */
    boolean addAttractionEvaluation(AttractionEvaluation attractionEvaluation);

    /**
     * 根据id查找景点评价
     *
     * @param id
     * @return
     */
    AttractionEvaluation getAttractionEvaluationById(Long id);

    /**
     * 根据景点订单id查找景点评价
     *
     * @param orderId
     * @return
     */
    AttractionEvaluation getAttractionEvaluationByOrderId(Long orderId);


    /**
     * 获取景点评价列表
     *
     * @param query
     * @return
     */
    List<AttractionEvaluation> getAttractionEvaluationList(AttractionEvaluationQuery query);


}
